<?php

$con=mysqli_connect("localhost","root","admin");
// Check connection
if (mysqli_connect_errno())
  {
  echo "Failed to connect to MySQL: " . mysqli_connect_error();
  }

// Create table
$sql= "CREATE TABLE HOPEWw.Child_Readiness_Scores(
  child_ID INT NOT NULL ,
  score_date DATE NOT NULL,
  activityA_score INT NOT NULL,
  activityB_score INT NOT NULL,
  activityC_score INT NOT NULL,
  activityD_score INT NOT NULL,
  
  
  
  PRIMARY KEY (child_ID, score_date )
   )";
// Execute query
if (mysqli_query($con,$sql))
  {
  echo "Table Child Readiness Scores created successfully";
  }
else
  {
  echo "Error creating table: " . mysqli_error($con);
  }
?>
